//
//  DQHomeViewController.swift
//  DouQu
//
//  Created by guojianfeng on 2017/7/25.
//  Copyright © 2017年 guojianfeng. All rights reserved.
//

import UIKit

class DQHomeViewController: DQBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setUpMainView()
    }

}

// MARK: - 初始化UI
extension DQHomeViewController {
    fileprivate func setUpMainView() {
        setUpNavgationBar()
    }
    fileprivate func setUpNavgationBar() {
        self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "更多", style: .plain, target: self, action: #selector(moreClick))
        self.navigationItem.leftBarButtonItem = UIBarButtonItem(image: #imageLiteral(resourceName: "time.png"),  style: .plain, target: self, action: #selector(leftClick))
    }
    @objc fileprivate func moreClick() {
        self.show(DQBaseViewController(), sender: nil)
    }
    @objc fileprivate func leftClick() {
        self.show(DQBaseViewController(), sender: nil)
    }
}
